package com.cy.shiro.service.impl;

import com.cy.shiro.dao.SysUserRoleDao;
import com.cy.shiro.pojo.SysUserRole;
import com.cy.shiro.service.SysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysUserRoleServiceImpl implements SysUserRoleService {

    @Autowired
    private SysUserRoleDao sysUserRoleDao;

    @Override
    public SysUserRole find(Integer userId) {
        return sysUserRoleDao.find(userId);
    }

    @Override
    public Integer addPost(Map<String, String> map) {
        return sysUserRoleDao.addPost(map);
    }

    @Override
    public Integer editPost(Map<String, String> map) {
        return sysUserRoleDao.editPost(map);
    }
}
